package com.jin.lazytool.task;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jin.lazytool.entity.IEvent;
import javafx.scene.control.TableView;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class JinTaskGroup implements Serializable {

    private String comments;
    private List<IEvent> events = new ArrayList<>();
    @JsonIgnore
    private TableView<IEvent> tableView;

    public JinTaskGroup(){
    }
    public JinTaskGroup(String comments){
        this.comments = comments;
    }

    public void addEvent(IEvent event){
        events.add(event);
    }
    
    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public List<IEvent> getEvents() {
        return events;
    }

    public void setEvents(List<IEvent> events) {
        this.events = events;
    }

    public TableView<IEvent> getTableView() {
        return tableView;
    }

    public void setTableView(TableView<IEvent> tableView) {
        this.tableView = tableView;
    }
}
